package com.liupengyuan.framework.dao;

import java.io.Serializable;
import java.util.List;

import com.liupengyuan.framework.web.query.IGenericPage;

public interface IBaseGenericDAO<T> {
	public abstract Integer save(T obj);

	public abstract Integer update(T obj);

	public abstract T getById(String id);

	public abstract Integer deleteById(Serializable serializable);

	public abstract Integer deleteByIds(Serializable aserializable[]);

	public abstract IGenericPage<T> findPageBy(T obj, int pageNo, int pageSize,
			String sort,String dir);

	public abstract List<T> findListBy(T obj, String sort, String dir);
	public abstract Integer getCountBy(T obj);



}
